import java.util.Scanner;

public class Num {
    public static void num(int n){
        while(n != 0){
            System.out.print(n % 10+" ");
            n = n/10;

        }
       // return n;
    }
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个数 :");
        int n = sc.nextInt();
        num(n);
    }
}
